<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
	    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/main/css/test.css">
		<link rel="stylesheet" href="${pageContext.request.contextPath}/main/css/amazeui.min.css">
		<link rel="stylesheet" href="${pageContext.request.contextPath}/main/css/admin.css">
		<link rel="stylesheet" href="${pageContext.request.contextPath}/main/css/app.css">
		<script type="text/javascript" src="${pageContext.request.contextPath}/main/js/test.js"></script>

	</head>
	
<style>

.left_t
{
background:#005b54;
margin-left:6px;
width:646px;
}
.zz_51LowerGray { background-color: #f3f2f2; color: #000000; }
.typeSearch a:link , .typeSearch a:visited { color:#333333; }
.typeSearch a:hover { color:#ff7300; }
.typeSearch .tsGray { color:#333333; }
.redline
{
  background-color: #fcefe7;
  border-right-width: 1px;
  border-left-width: 1px;
  border-right-style: solid;
  border-left-style: solid;
  border-right-color: #fe8929;
  border-left-color: #fe8929;
  }
  
  
.funIndJobareaPare {
	font-size: 14px;
	line-height: 20px;
	font-weight: bold;
	color: #FF6600;
}
.zz_51High { background-color: #ffa22e; color: #ffffff; }
.zz_51Lower { background-color: #ffffff; color: #000000; }
.zz_51LowerGray { background-color: #f3f2f2; color: #000000; }
.zz_51LowerYellow { background-color: #feffef; color: #000000; }
</style>

	<body>

		<div class="am-cf admin-main">
			<!-- content start -->
			<div class="admin-content">
				<div class="admin-content-body">
					<div class="am-cf am-padding am-padding-bottom-0">
						<div class="am-fl am-cf">
							<strong class="am-text-primary am-text-lg"> </strong><small>
								<i class="icon-home"></i> &gt; 首页 &gt; 融资申请</small>
						</div>
					</div>
					<hr>
					<div class="container">
						<div class="am-g" style="margin-top: -30px;">
							<div class="am-u-sm-12">
<form action="/gongyinglian/FinanceReqController" method="post" name="aForm" style="display:inline" id="aForm" >


<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>
            
       <td style="padding:0 20px;" bgcolor="#FFFFFF">
       
	       <table width="100%" border="0" cellspacing="0" cellpadding="0">
	           <tr>
	             <td style="border-bottom:1px dotted #333;"><p class="name"><strong>融资申请</strong>（融资申请发起前请务必把企业信息填写完整，<span class="red">*</span>为必填项）</p></td>
	           </tr>
	           <tr>
	             <td>&nbsp;</td>
	           </tr>
	        </table>
	        
           <table id="table_ufo" width="100%" border="0" cellspacing="0" cellpadding="0">
             <tbody id="tab">
				 <tr class="t2">
				   <td width="40%" align="right"><span class="red">*</span><span style="color:blue;font-size:12px;font-weight:normal">企业统一社会信用代码:&nbsp;</span></td>
				   <td title="" align="left">
				   	<input type="text" maxlength="20" id="entCodeCredit" name="entCodeCredit" value="${sessionScope.enterprise.entCodeCredit }" class="textc" style="color:blue;font-size:12px;width:340px" readonly required>            
				   </td>
				 </tr>
               <tr class="t1">
                 <td width="40%" align="right"><span class="red">*</span><span style="color:blue;font-size:12px;font-weight:normal">企业登录账号:&nbsp;</span></td>
                 <td title="" align="left">
                 	<input type="text" maxlength="20" id="entNo" name="entNo" value="${sessionScope.enterprise.entNo }" class="textc" style="color:blue;font-size:12px;width:340px" readonly required>            
                 </td>
               </tr>
               <tr class="t2">
                 <td width="40%" align="right"><span class="red">*</span><span style="color:blue;font-size:12px;font-weight:normal">企业名称:&nbsp;</span></td>
                 <td title="" align="left">
                 	<input type="text" maxlength="20" id="name" name="name" value="${sessionScope.enterprise.name }" class="textc" style="color:blue;font-size:12px;width:340px" readonly required>            
                 </td>
               </tr>		   
               <tr class="t1">
                 <td align="right"><label for="reqTool"><span class="red">*</span>融资类型:&nbsp;</label></td>
                 <td title="" align="left" class="value ">
		    		<select id="reqTool" name="reqTool" autoCheck="blank" autoWarn="融资类型不能为空" >
					<option value=""></option>
					<option value="保理" >保理</option>
					<option value="反保理" >反保理</option>
					<option value="订单融资" >订单融资</option>
					</select>
			      </td>
			    </tr>
                <tr class="t2">
                 <td align="right"><label for="product"><span class="red">*</span>融资产品:&nbsp;</label></td>
                 <td title="" align="left" class="value ">
		    		<select id="product" name="product" autoCheck="blank" autoWarn="融资产品不能为空" >
					<option value="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
					</select>  
				</td> 
			   </tr> 
			   <tr class="t1">
                 <td align="right"><label for="product"><span class="red">*</span>依托核心企业:&nbsp;</label></td>
                 <td title="" align="left" class="value ">
		    		<select id="reply" name="reply" autoCheck="blank" autoWarn="请选择依托的核心企业" >
					<option value=""></option>
					<option value="xyjt" >旭阳集团</option>
					</select>  
				</td> 
			   </tr>
            <tr class="t2">
              <td align="right"><span class="red">*</span>请求名称:&nbsp;</td>
              <td align="left">
		    	<input type="text" maxlength="30" id="reqName" name="reqName" value="" class="textc" required/>
              </td>
            </tr>      
            			   
		   <tr class="t1">
			 <td align="right"><span class="red">*</span>融资金额:&nbsp;</td>
			 <td title="" align="left">           
			<input type="text" maxlength="30" id="reqAmount" name="reqAmount" value="" class="textc" autoCheck="blank" autoWarn="融资金额不能为空" required/> 
			 </td>
		   </tr>    
		   
		   <tr class="t2">
		     <td align="right"><span class="red">*</span>融资用途:&nbsp;</td>
		     <td title="" align="left">           
		   	<input type="text" maxlength="240" id="purpose" name="purpose" value="" class="textcmax" autoCheck="blank" autoWarn="融资用途不能为空" required/> 
		     </td>
		   </tr>  
               
		</td>
	</tr>
	
	    </table>
	    <table style="border-top:1px dotted #333;" width="100%" border="0" cellspacing="0" cellpadding="0">
	         <tr>
	             <td width="110" height="100">&nbsp;</td>
	            <td title="" align="left" style="height:50px;line-height:20px">
	               <input type="submit" class="book_in_button"  value="提 交" />
	               &nbsp;&nbsp;&nbsp;
	               <input type="button" class="book_in_button" onclick="history.back()" value="取 消" />
	             </td>
	         </tr>
	    </table>
	    
      </td>
    
  </tr>
  
  <tr>
    <td height="30">&nbsp;</td>
  </tr>
  
</table>

</form>

							</div>
						</div>
					</div>

				</div>
				<!-- content end -->
			</div>
		</div>
		<script>
		// 监听第一个select框的选择事件
		document.getElementById('reqTool').onchange = function() {
		    var reqToolValue = this.value; // 获取第一个select框选择的值
		    var productSelect = document.getElementById('product'); // 获取第二个select框的对象

		    // 根据选择的值更改第二个select框的选项
		    if (reqToolValue === '保理') {
		        productSelect.innerHTML = "<option value=''></option>" +
		            "<option value='吉企E车通-保理通'>吉企E车通-保理通</option>" +
		            "<option value='吉企E贸通-跨境通'>吉企E贸通-跨境通</option>";
		    } else if (reqToolValue === '反保理') {
		        productSelect.innerHTML = "<option value=''></option>" +
	            "<option value='吉企E车通-保理通'>吉企E车通-保理通</option>" +
	            "<option value='吉企E贸通-跨境通'>吉企E贸通-跨境通</option>";
		    } else if (reqToolValue === '订单融资') {
		        productSelect.innerHTML = "<option value=''></option>" +
		            "<option value='吉企E车通-订单通'>吉企E车通-订单通</option>" +
		            "<option value='吉企E贸通-互市通'>吉企E贸通-互市通</option>";
		    } else {
		        // 其他情况
		        productSelect.innerHTML = "<option value=''>请选择融资产品</option>" +
		            "<option value='其他'>其他</option>";
		    }
		};
		</script>
<script>
    // 使用JSTL或EL表达式获取请求是否成功的状态
    var isRequestSuccess = ${isRequestSuccess};

    // 显示相应的提醒框
    if (isRequestSuccess) {
        alert("融资申请成功！");
    } else {
        alert("融资申请失败！");
    }
</script>

		<!--[if lt IE 9]>
<script src="js/jquery.min.js"></script>
<script src="js/modernizr.js"></script>
<script src="js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

		<!--[if (gte IE 9)|!(IE)]><!-->
		<script src="js/jquery-1.11.3.min.js"></script>
		<!--<![endif]-->
		<script type="text/javascript" src="js/plugs.js"></script>
		<script>
			$(function() {
				$(".btnAdd").click(function() {
					$.jq_Panel({
						title: "添加用户",
						url: "addUser.html",
						iframeWidth: 800,
						iframeHeight: 600,
					});
				});

				$(".btnEdit").click(function() {
					$.jq_Panel({
						title: "编辑用户",
						url: "addUser.html",
						iframeWidth: 800,
						iframeHeight: 600,
					});

				});

			});
		</script>
	</body>

</html>